package common;

import java.util.HashMap;
import java.util.Map;
import java.util.Set;

public class HandlerMapping {
	private static Map router = new HashMap();
	
	public static void addRouter(String key,Class clazz){
		router.put(key, clazz);
	}
	public static void removeRouter(String key){
		router.remove(key);
	}
	
	public static boolean containsRouterKey(String key){
		return router.containsKey(key);
	}
	
	public static Class getRouterClass(String key){
		return (Class) router.get(key);
	}
	
	public static Set getRouterKey(){
		return router.keySet();
	}
}
